package com.zh.work.entity.channel;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("二维码商户实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qrcode_merch")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QrCodeMerchEntity extends Model<QrCodeMerchEntity> {
  private static final long serialVersionUID = 4749080080185294418L;

  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
  @TableLogic
  @TableField(select = false)
  private Integer deleted;
  @ApiModelProperty(value = "机构编码", name = "branchno")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "商户编号", name = "merchNo")
  @TableField(value = "merchno")
  private String merchNo;
  @ApiModelProperty(value = "渠道商户号", name = "partnerId")
  private String partnerId;
  @ApiModelProperty(value = "机具号", name = "termNo")
  @TableField(value = "termno")
  private String termNo;
  @ApiModelProperty(value = "渠道密钥", name = "merchKey")
  private String merchKey;
  @ApiModelProperty(value = "状态(1-启用 2-禁用)", name = "status")
  private Integer status;
  @ApiModelProperty(value = "渠道编码", name = "channelCode")
  private String channelCode;
  @ApiModelProperty(value = "渠道商户名称", name = "channelMerchName")
  private String channelMerchName;
  @ApiModelProperty(value = "商户名称", name = "merchName")
  private String merchName;
  @ApiModelProperty(value = "渠道费率编号", name = "feeTypeId")
  private String feeTypeId;
  @ApiModelProperty(value = "应用id", name = "appId")
  private String appId;
  @ApiModelProperty(value = "应用秘钥", name = "appKey")
  private String appKey;
  @ApiModelProperty(value = "结算类型(1-T+0 2-T+1)", name = "settleType")
  private Integer settleType;
  @ApiModelProperty(value = "支付类型 ：1-支付宝 2-微信 4-百度钱包 8-QQ钱包 16-京东钱包", name = "payType")
  private Integer payType;
  @ApiModelProperty(value = "扫码类型：1-主扫 2-被扫 4-公众号 8-WAP", name = "scanType")
  private Integer scanType;
  @ApiModelProperty(value = "代付状态:1-启用 2-禁用", name = "dfStatus")
  private Integer dfStatus;
  @ApiModelProperty(value = "代付状态:1-余额代付  3-垫资代付", name = "dfType")
  private Integer dfType;
  @ApiModelProperty(value = "rsa秘钥", name = "keyRsa")
  private String keyRsa;
  @ApiModelProperty(value = "清算方(1-平台清算 2-渠道清算)", name = "liquidator")
  private Integer liquidator;

}
